package com.example.seckill.domain.share;

/**
 * @author Martin
 */
public interface DddEntity<T> {
    /**
     * Entities compare by identity, not by attributes.
     *
     * @param other The other entity.
     * @return true if the identities are the same, regardles of other attributes.
     */
    boolean sameIdentityAs(T other);
}
